package arm_search_3.data;

import java.util.Comparator;

/**
 *
 * @author 
 */
public class ResultModelComparator implements Comparator<ResultModel> {

    public ResultModelComparator() {
    }

    @Override
    public int compare(ResultModel o1, ResultModel o2) {
        if (o1.getWeight() > o2.getWeight()) {
            return -1;
        } else {
            return 1;
        }
    }
}
